package ar.uba.fi.taller2.ftrs.parser;

/**
 * @author  juampi
 */
public class Palabra {
	private int peso;
	private String palabra;
	private int id;
	
	public Palabra(String S,int I, int ID){
		this.peso=I;
		this.palabra=S;
		this.id=ID;
	}
	
	public Palabra(){
		this.peso=0;		
	}
	/**
	 * @return  Returns the peso.
	 * @uml.property  name="peso"
	 */
	public int getPeso(){
		return this.peso;
	}
	
	/**
	 * @param peso  The peso to set.
	 * @uml.property  name="peso"
	 */
	public void setPeso(int P){
		this.peso=P;
	}
	
	public String getString(){
		return this.palabra;		
	}
	
	public void setString(String S){		 
		this.palabra=new String(S);
	}
	

	/**
	 * @return  Returns the id.
	 * @uml.property  name="id"
	 */
	public int getId(){
		return this.id;
	}
	
	/**
	 * @param id  The id to set.
	 * @uml.property  name="id"
	 */
	public void setId(int I){
		this.id=I;
	}
	
}

